package cn.dglydrpy.study.algorithm.od;

import java.util.Scanner;

/**
 * @author Yyy
 * @date 2024/11/7 22:38
 * @description TODO
 * 充分发挥 GPU 算力，将任务交给 GPU 执行，给定任务数组和 GPU 一次最多执行的任务个数，求执行完所有任务最少需要的时间
 */
public class Od0022_GPU {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        while (scanner.hasNextLine()){
            int taskCount = Integer.valueOf(scanner.nextLine());
            int n = Integer.valueOf(scanner.nextLine());
            int[] tasks = new int[n];
            String[] s = scanner.nextLine().split(" ");
            for(int i = 0;i<n;i++){
                tasks[i] = Integer.valueOf(s[i]);
            }
            
            int ans = myAnswer(tasks,taskCount);
            System.out.println(ans);
            
        }
    }

    private static int myAnswer(int[] tasks, int taskCount) {
        if(tasks == null || tasks.length < 1){
            return 0;
        }
        
        int ans = 0;
        
        
        return ans;
    }
}
